.scroll-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(8px, 1.5vw, 12px);
  overflow-x: visible;
  padding-bottom: 4px;
  height: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  /* 基础高度 */
  max-height: 100%;
  aspect-ratio: 1;
  /* 保持卡片整体比例 */
}

.card img {
  aspect-ratio: 300/169;
  /* 图片比例固定 */
  max-height: 169px;
  object-fit: cover;
}

.card .p-4 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}